.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.settings-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    width: 80%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.header-content h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.header-content .subtitle {
    margin: 8px 0 0;
    color: #666;
    font-size: 16px;
}

.settings-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.3s;
}

.settings-close:hover {
    color: #333;
}

.settings-content {
    margin-bottom: 30px;
}

.settings-section {
    margin-bottom: 25px;
}

.settings-section h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #444;
}

.setting-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.setting-item label {
    min-width: 150px;
    color: #555;
    font-size: 14px;
}

.model-select-group {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
}

.model-select-group select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s;
}

.test-model-btn {
    padding: 8px 16px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.test-model-btn:hover {
    background-color: #1976D2;
}

.test-model-btn:disabled {
    background-color: #9E9E9E;
    cursor: not-allowed;
}

.setting-item input[type="number"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s;
}

.setting-item input[type="number"]:focus,
.setting-item select:focus {
    outline: none;
    border-color: #4CAF50;
}

.settings-footer {
    text-align: right;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.save-settings {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.save-settings:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar styles */
.settings-popup::-webkit-scrollbar {
    width: 8px;
}

.settings-popup::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.settings-popup::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.settings-popup::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 